package com.pda.common.pages.createinbill;

import com.pda.common.basemvp.present.BasePresenter;
import com.pda.common.bean.BillBean;

public class CreateInBillPresent extends BasePresenter<CreateInBillModel, CreateInBillView> implements CreateInBillModel.CallBack {
    public void createBill(String pid,String batch) {
        model.createBill(batch,pid,this);
    }

    @Override
    public void onCreateBillSucc(BillBean billBean) {
        if(view!=null)
        {
            view.hideProgress();
            view.CreateBillSucc(billBean);
        }
    }

    @Override
    public void ontip(String str) {
        if(view!=null)
        {
            view.hideProgress();
            view.tip(str);
        }
    }
}